const uploadAssets = require('./uploadAssets');
const uploadHtml = require('./uploadHtml');
const chalk = require('chalk');
const {uploadSourceMap} = require('./uploadSentry');
console.log = new Proxy(console.log,{
    apply(target, thisArg, argumentsList){
        if(argumentsList.length===1 && typeof argumentsList[0] === "string"){
            if(argumentsList[0].indexOf('tupload.oa.com')>=0){
                return;
            }
        }
        return target(...argumentsList);
    }
});
(async ()=>{
    //上传sourceMap到sentry
    await uploadSourceMap();
    //上传静态资源
    await uploadAssets();
    //上传html
    await uploadHtml();
    console.log(chalk.black.bgYellow(`iPhone 和 Androids 请分别再次查看是否有问题~!`),'\n');
})();
